package com.hotelvip.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 商品分类
 * @author Lzh
 * @date 2020/12/17 14:14
 */
@Data
@Accessors(chain = true)
@TableName(value = "ht_item_cat")
@ApiModel(value = "商品分类对象",description = "商品分类对象Item")
public class ItemCat extends BasePojo {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "分类id",name = "id")
    private Long id;
    @ApiModelProperty(value = "一级类目id",name = "parentId")
    private Long parentId;
    @ApiModelProperty(value = "分类名称",name = "name")
    private String name;
    @ApiModelProperty(value = "可选状态 默认值为1，可选值：1正常，2删除",name = "status")
    private Integer status;
    @ApiModelProperty(value = "排序",name = "sortOrder")
    private Integer sortOrder;
    @ApiModelProperty(value = "是否是父级目录",name = "isParent")
    private Boolean isParent;


}
